package com.yingxin.yxerp.module.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yingxin.yxerp.module.sys.entity.ActivitiCoreInformation;
import com.yingxin.yxerp.module.sys.mapper.ActivitiCoreInformationMapper;
import com.yingxin.yxerp.module.sys.vo.req.ActivitiCoreInformationQueryVo;
import com.yingxin.yxerp.module.sys.vo.resp.ActivitiCoreInformationRespVo;

import java.util.List;

/**
 * 任务核心内容列表 服务类
 * @author yuebao
 * @since 2024-02-24
 */

public interface IActivitiCoreInformationService<T> extends IService<ActivitiCoreInformation> {

    /**
     * 获取 mapper
     */
    ActivitiCoreInformationMapper mapper();

    /**
     * 创建
     */
    void create(String businessId, String businessType, T vo);

    /**
     * 查询全部
     */
    List<ActivitiCoreInformationRespVo> listVo(ActivitiCoreInformationQueryVo queryVo);

    /**
     * 根据 bill id 获取
     */
    List<ActivitiCoreInformationRespVo> listByBillId( String businessId );

    /**
     * 根据id查询
     */
    ActivitiCoreInformationRespVo getVo(String id);

    /**
     * 根据 业务id 删除
     */
    void deleteByBusinessId( String businessId );

}
